<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 解决按钮图片加载缓存出现空隙的问题 */
        a:link{
            display: block;
            width:300px;
            height:300px;
            /* 静态图片 */
            background-image: url();
        }
        a:hover{
            /* 同一张图片的不同位置 */
            background-position: -100px 0;
        }
        a:active{
            background-position: -200px 0;
        }
    </style>
</head>
<body>
    <a href="javascript:;"></a>
</body>
</html>